added StatException. Edited classes, next is deriving a Stat and testing it