following the excellent Tuts+ Hands on Angular tutorial by Rem Zolotykh