Merge pull request #1 from Mooophy/master

SYN
fix exercise 16.3 16.4

Add a test for exercise 16.3.
A better solution for exercise 16.4.
Merge pull request #52 from Queequeg92/master

add test code for exercise 16.3; improved 16.4.