-adding code for the part three