added solution to part 1