Implement basic tip calculator.