Setting up context through model