update for object lay out system with samples

Can add const for getXXX functions?