Added some code for hexes and objects
Added some code for hexes