Why it has to be static class so we can use following line.
System.out.println(new Hobby().toString());