functions must be members of object to have access to object properties