create class from request