added in pdf and source codes