Completed exercises 6.1, 6.2, 6.3, 6.4