added new extract function to unPack class