Added require_class function