added new classes to demonstrate the use of init and destroy methods via XML configuration