practice with creating objects with function properties