Swift Sample Code