Add a variable and method. Modified main().