at this moment , as he recalled from his visits and from his son 's accounts , david was with the aristotle , learning the rudiments of science , philosophy , logic , grammar , poetics , and an archaic physics .