a basic coding in libgdx