added Brian's code to git.