working on the 3rd question