created code to test in console