G solution!