first attempt at implementing ensure

behold, it fails every single test.