Historical society wins three grants