exercises from Rails Tutorial