Add {'type':'homework'} to find - previous code removed the lowest score of any type (incorrect).