he tinkered with his unfathomable machines with the lightheartedness of a schoolboy and judging from the way he carried himself , the doctor was as pleased as if he had just patented the invention of his career .