refactor: refactor weather class to use the new class to read file