Define coordinates, position, direction as Serializables.