working sample with libGDX