Code restructuring, separation of engine and content