day 4, part 2 solved