homwork 3 done.