Implement ReaderWriter problem