eventually he ran out of gas , though , and sat in the grass , panting away in the shade of the tree with his little legs stuck out straight behind him , his tongue hanging out and a big doggy smile on his face .