How to create instance