Added method to get the first encounter of a given type to the Calculations class.