finished ex. 4