bg.java

to run in terminal do 1) "javac bg.java".  Then 2) java Launcher