first pass at gdi homework