a simple example with Swift