added code and ppt