TD 7 Solution