Fixed PassingObjectToKernel (MyClass have to be defined inline)