def H_policy(b, threshold):
    """
    Threshold type of policy: if the belief on health (H) is lower than threshold,
    then the action is I, otherwise choose M.
    """
    if b[0] < threshold: 
        return 1
    else: 
        return 0