Fixed Logic.java to compile and run.