I had found what I thought was a good example of what I am trying to do here on stackoverflow and that I was following the example. However, when I run my code I am getting the