Workaround rebase code to OOP

Redesign code to object oriented programming, remove some files