An object Factory to create Swift objects