added toString to input and structure