added functions that getCostOSR will use, Stable state (compiles & runs)