added open file to Constructor solved #2