Fixed wrong sample code