arrays into arraylists
rect to box
instanceof
generic'd hashmaps