code changes for adding constant class and testcases