lab 9 100 pont

refining and making funktions to call