create class and objects