Instance creatation
Init state
Free instance
Getting positions