Problem 4 in Vala