Finished ex4 in tdt4145