Average Words in File with pattern solution