SMC code initial commit