Simple tip program as part of iOS class