Code for OOP344 class.