initialize ReentrantLock, Condition, no. permits
completed week-3-assignment-2