ticket:5 Write implementation of saving the data.