Creation of class instance