Dots and Ties Exercise 2