Changed logic for creating out put file 'films.cvs'.