added price calculations

added histogram and pricing functions. also added advance function and
secondary menu function