Added extract function to bashrc