Added interface and implementation for DataHandler class