I don't think I managed to preserve the history

Hello!

This is a re-push of the code I wrote for the original test. The history has been lost. Sorry for that.