Fixed example code #2