wrote main program to show it works