for assignment 6