Updated solutions 6 to 8.