Fixed example code #4