Added another for loop. Need to start from scratch
Added ui.r. Still buggy, some tests continue to fail.