updated sample with gradle