added class file to control the xprotolab