The error message is very specific. There can only be one top-level public class in each source file. That class should also contain the main() method. Remove the 'public' from the Site class...