added Hat and HatTest file
added main
added comment
Merge pull request #3 from sososohan/master

Added hat class under sososohan directory