Assignment #3 modifications excluding the History and NSAttributedString.