worked on the example and noticed errors