Finished code and answers for Activity 1.3.1