some exam code during my studying