adding some notes from advanced swift