Assignment4 from Fangyun Sun