Code written during rails workshop.