Add #applicable_states instance method to Machine class.