beginning to write the main section of code.