Last part of first assignment : corr function.