added: solution to Problem 3.4