calculations are pretty much done. need to do some error checking (like dividing by 0)