implemented channel.ack() method