added reading and writing threads with unsolved PCP