abstracted a bit
Rearranged code
Merge pull request #1 from raymondgh/tri-color

Tri color