created regular java master file -- to be adapted to android