#19, #20 changed setValues to take a List (not ArrayList) as input