Adding calculate_values method to encoding.rb