add more loop output, create instance of class to test index