Create Chapter3

This is my attempt at coding the exercises from chapter 3.