More Swift exercises