addition of the new function for class instance creation