syntax: [] method can have closure definition