demo code I used for learning android