Adding new functionality: reading a file