refactor FeedbackMachine into an Effect