Add solution for the 9th homework