Swift classes and structures