finished off lock class, need to add to makefile