Completed the assignment and also integrated the simple semaphore by the virtual office hours (One I submitted is wrong)