updated math test rewrite
finished up cs758 assignment 6