A History of Engineering in Classical and Medieval Times