Adding get_file_ext function