tip calculator for ios swift class