updated the structure of the document so the int main is at the top