updated the skeleton code, basci read/write flow