Added code to 5-th part.