This is what I tried at first but it wouldn't compile. It doesn't like the if after the }