add code from Saurabh - with visualization and feature extraction