fixing example code

adding proper captialization and namespacing class