Task: use Ruby idioms.