Implemented a Mutex object