Fixed issue #2: updated example code