New file Logic2.java - completed