corrected formatting of sample code