add binary in arraylist class