following ruby.railstutorial.com - the errors are all my own work, the rest is from Micael Hart