Adjusted Mail::Factory according to instructor's specifications.