added solutions to part-4