reads the information to go in the
kind
field
scanf("%d",&kind);