solutions for 3,4,5,6,7
solution for 8