Fixed multiple code sample execution issue #6