modified starter code