Graphics programming sample program