Defined the function for each class in their respective .cpp files