Make the changes to the example as suggested by @tschaub