completed third homework, but it is slow at the moment