Makes CreateWidget() a function from Widget