Style for AMD sample.
Moved initialize code to constructor.