Used object prototype to define class method.