Learning Swift basic - advance stuff