First attempt att 5
C was a bit faster...