Started Exercise 3

Wrote the code. But not tested, probably doesn't work yet.