new working solution for problem one added.