teacher addition code fixed