wrote Basechar.java