Trying to extend to other datatypes