New func at main.cpp