part of the 3-th homework