working through the interactive loop example