add solutions for problem five
add solution for problem six
add solution for problem seven