Proposed change to Listing 3 so that it will work for anyone

Proposed fix for #134 , also bearing in mind #143