Added some functions form ex3_5