class UnlockedState attr_reader :lock, :state_name def initialize(lock) @lock = lock @state_name = 'Unlocked State' end def dial_to(number) puts 'The lock is unlocked. Dial does nothing.' end def clear puts 'The lock is unlocked. Clear does nothing.' end def pull_to_open puts 'The lock is unlocked. Pull does nothing.' end def push_to_lock lock.state = lock.cleared_state end end