starter code for gui