updated chapter 3 starter snippet with namespacing.