hw6 done
+ delegate method