Defining a Method on the Scope