learn ping code