Use who and whom for references to human beings. Use that and which for inanimate objects and animals.