Modified the tip calculator to accept input from user