Added basic structure to main and visitor