Adding profession details to file