Finished Exercises 5.1-5.3