First commit of tip calculator