moved Main.java to package 'core'