added solution for ex4
Merge pull request #26 from clauslang/master

added solution for ex4