Lock and Unlock classes created