changes to Oppgave6.c