Answer for example rails challenge