App from the chapter 2 of the Rails book