solution to 3rd point