product and price functions fixed up