Created initialize(),read(int id), and write(Task task)