begining to move code out from builder class to application class