Final version of third homework