returning the created class