getting rid off put's
each with index
printing students with given pattern only