Computational Methods, homework #4