working on locks in lab4