revise tip calculator a third time