took out sample code and uncommented code to get total expense cost