This is a non-functional version of JavaMusicExample