code for symantec coding exercise