added activity model and associated classes