started implementing the Read write functionalities