Add `problem` and `reset` decorators

Fixes #5