Finishing chapter 3 samples. Excluded the logging though.