(CITS2200) Week 3 lab template code for Lock.java