getFile method to Item class