Implemented the part about storing an entry