Added normalize() method for Data class