Added brackets to naive implementation loop (aesthetic)