What was possible of the many invention of the middle ages