Using calc_salary in employees' constructor. Writting to file.