Assignment6 part II