tip calculator added as exercise 1-7