solved hw3-2
solved hw3-3