#5: Implemented controller code to add an entry item to the model