And where is your end of main()?

Note the class should not be defined inside of main().

Jim