adding sc code from class