creating a class and object