Using ClassMethods to associate models