How to avoid the imperative