Simple Adapter in Swift