based on the book of agile development with rails 4