included load_class function for dynamic class loading