Learning swift basics