Changed print implementation to a constant string
adding extra test and restoring refactored inject with index