Extracting types from files