Refactor of the problems packages

its easier for you guys to help me :)