main, ex1