revise sample app Step 4 with Kim's edits