initial commit of working contagion model