example sc code