Modified tip calculator to accept input using optparser