Swift Sample code