Working example with GD