filled the example and fixed some typos