System Programming 2014 spring homework 4