Fix sample package name
Add setter and getter for the type