building initialization logic for main() function.