adding solution to 7.1