// Stephen's solution class BikeLock { boolean locked; int currentSetting; int combo; BikeLock(int combo) { this.locked = true; this.currentSetting = 9999; this.combo = combo; } BikeLock(int combo, boolean locked) { this.locked = locked; this.currentSetting = 9999; this.combo = combo; } boolean isLocked() { return locked; } void spinWheelsTo(int setting) { this.currentSetting = setting; } boolean unlock() { if (this.currentSetting == this.combo) { this.locked = false; return true; } else { return false; } } void lock() { this.locked = true; } }