This is my fourth homework - second part of the course