implement Hypothesis class in decode.py