coding first order operations