added a set_offset() method to partition_consumer.rb