Adding changes to sample poemApp.py