console logging trains array