file processing and virtual function examples