Added read from file constructor