Removed trailing whitespace.
Added solution to problem 29.