Reader Writer Problem (Assignment #2)