wrote the sample data generator and modified the books controller