Smex's attempt

here goes nothing