finished the brunt of the code for cereal