finished assignment6!!