copied some already written starter code