Added solution for hw6