founded in 331 b.c. , it beckoned the greats of its time , who in turn gave the world a harvest of their best thoughts and inventions : the pipe organ , the archimedes screw , the atlas and 12-month , 365-day year , grammar and geography , geometry and trigonometry , steam and fire engines , coin-operated machines , city planning , and cataloging .