NCTU CS OS2013 homwwork 3