Added necessary variables.
Added the main function to run the program.
Added function getPageWidth to get the page width from the user.