added global class 'Writer'