solution 5 and solution 6