hw2.2 done but untested