Add class method DSL and update loader to instantiate attributes