added refactored tip calculator