writing main function and everything we need for it