framework for my crazy theory in c