stubbing out problem 5
updated problem #5 to have a simpler implementation. I couldn't find a suitable original solution to translate, so I'm doing my own. We'll see how it goes ;)