Allow for object methods to take attributes as arguments