Building model, integrating model in activity