Solution to quiz 1