added relative_frequency method
not yet implemented