updated PPT and code