Added doctest examples for Unit 2.