Implemented sha256 hashing and base class design