finish ex-1.c, the simple usage of set