cse491 code and stuff