finished solution for Day2