adding modified changes and assignment6