fixed up hw3