added padding`s
refactoring
added graph builder
removed unused imports
refactoring