combines two earlier exercises from today into one