Fixed error in example code, fixes #4.