removed return 0 from sample code