Added hypothesis construction.
Closes #41.