04: Ex 4, better solution