Worked out get functions and fixed possiblity for divide by zero in getPrice