de/serializing arrays Arraylist  fancy loops