compile when I get the message ' setLocked ' was not Declared In This scope