unfoldMoore example