project08 done with all functions, error testing!