added two tests and the Tip class