homework 6, pair with Liang Liu