That’s a pretty complicated question for answer hub. Your best bet is to go through one of our learning examples.