memo sample of swift