initial commit - greg's code