create class and method