Wrote SemaphoreImpl class and skeleton code for Thread class