switched to full java, wrote many codes