Move SampleObj to 'shared'