added class method and invoked new class method and replaced with a name