Refactored Request to a standalone module with a constructor.