My practice code from RailsGuides tutorials.