Solution for 3