creating rabbitmq classes