Finished ex. 3
Made indentation consistent.