Java Implementation for the MusicalBox embedded application