Modified solutions to hw1