If refactored with builders
While loop implemented
For loop implemented