A simple actor in java