First draft of Mutex implementation