Chapter5: some fixes in solution 5-6