Add unwind class, tests. Not yet passing.

[ci skip]