I implemented the Door Lock class and both lock state and control are working correctly.