apply method - functions as objects