Fixing issue with the sample project not building properly. Issue #1

Resolved the issue of the sample project not building because a reference to self was technically being used in the init method before init was being called.