Branch class implementation