Added solution up to problem 8