Refactored store_class_methods