added some code to test application