Problem #031 done