additions to the third homework