Why does this class require an example file as input?