Overloaded constructor with a File as a parameter