Homework for NJIT class 322