Created a  source class and companion object to each class definition