Added solution for problem006.