Solutions by Robert McIntosh.