end of ch.4: functions
Merge pull request #9 from dpflann/dsa

end of ch.4: functions