Recent update of HW4 with integralMem incorporated.