Methods and variables in base and main code are isolated to solve the problem of code pollution. Close #4