Tutorial and first attempt at Swift