starting point provided by Professor Foerster for VGA project