also part of ruby on rails tutorial