Added solution to problem 4
Added solution to problem 6
Added solution to problem 8
Added solution to problem 7