Created by: Superjomn
This is the framework for inference analysis
This PR is a part of the full code.