Programmming assignment2 Chenxi Wang