Started working on inferences. Added some tests.