My code from CS371 - Computer Graphics