refactor tip_calculator2.py