In order to access build function from main i need to use static but when im doing so its showing error Help