methods now return doubles, not strings. string manipulation is now done in work method