correct problem 8's number variable & create tests