finished 3th assignment