this is another tutorial following a rails book