Add solution source file for problem 1.6-1.8