added the AppListener and also created Param class.