Implemengint atomic and composite goals