function for creating an instance included