implement working with several variable in main