Update and rename main.java to Component.java