class Loanitem
    def initialize(id, title, loandate, duedate, renewals)
        @id = id
        @title = title
        @loandate = loandate
        @duedate = duedate
        @renewals = renewals
    end
    
    attr_reader :id, :title, :loandate, :duedate, :renewals, :renewable

    def to_s
        "ID: #{@id} Title: #{@title}  #{@authordesc}     Loan date: #{@loandate}   Due date: #{@duedate}   Renewals: #{@renewals}   Renewable? :#{renewable}\n"
    end
    
    def printLoanitem
        printed = "-----------------------------  Item details  -----------------------------"
        printed += @id
        printed += @title
        printed += @loandate
        printed += @duedate
        printed += @renewals
        printed += @renewable
    end
end
class Loanitem
    def initialize(id, title, loandate, duedate, renewals)
        @id = id
        @title = title
        @loandate = loandate
        @duedate = duedate
        @renewals = renewals
    end
    
    attr_reader :id, :title, :loandate, :duedate, :renewals, :renewable

    def to_s
        "ID: #{@id} Title: #{@title}  #{@authordesc}     Loan date: #{@loandate}   Due date: #{@duedate}   Renewals: #{@renewals}   Renewable? :#{renewable}\n"
    end
    
    def printLoanitem
        printed = "-----------------------------  Item details  -----------------------------"
        printed += "#{@id}"
        printed += "#{@title}"
        printed += "#{@loandate}"
        printed += "#{@duedate}"
        printed += "#{@renewals}"
        printed += "#{@renewable}"
    end
end
Modify printLoanitem to convert all variables to strings
Modify printLoanitem to convert all variables to strings
