Bring the TimeStamp property inside the class

This sample wouldn't compile as is, update the sample code to bring the property inside the class definition.