Adding Carl's solutions.