Add getters/setters/constructor and basic functions to cpu.