Very basic rough draft of solution -- This is tricky...