pulled out assert into module
hw2 finished and tested