Add Swift base classes (taken from SMART, might need some trimming)