implemented buy

still need sale and cargo and constraints.