finished chapter 3 of the tutorial warning: there is a memory leak in 305 that happens rarely, it requires debugging