added session model and tests #2