changed require to class declaration