App 1 from Ruby tutorial