Problem 3 added

Wrote this some months ago..