Created addHypothesis function