Partial solutions for part2 exercises