You might want to use `#concat` in all of these statements to avoid creating an extra Array with `+=`.