removed a duplicate lock function
added some TODOs
added another example