adding solution 9