Add automatic reference counting in swift