Fixed example code #5