My attempt at quiz 2