Convert osource to a static class.
Added program space2 as a C++ version of program space.