Adding Exception, and also Test Class.
adding dao and service layer capability.