Impl of createing instance