fixed errors in the example