Add Lock classe. Add tests.