week7 solved
ISNR as a function