adapt
solve exercise in SimpleTest