made a diary class