modified example.py and tipCalculator.py