Fixed Sample Code to compile