solution to step-3