Swift by example