Utility function for declaring constructors