Updated medium, it's slow but almost beat me