Completed CS180 hw06, hw07