my answers for standord cs106 assignments