Sample code improvement.

The code is to show it supports passing a structure argument  through
pointer.