Coursework 2 Calculator, fraction and their respective classes