part solution of hw3