Stylistic Ruby improvements