Write create methods for classes