Part3 Solution