add to_dict function to income relate class