physics and framework code