Implemented the EventDiary class, with a main method that demonstrates
its methods.