Solutions for the 10th homework