ML assignment 6