gPlay sample code