completed Assignment6