implement writeproblem