refactor all method in static
+ run method
+ di method
improved example