Gotta fix the index array bounds bug
Fixed formatting