UPDATE changing the barbossa class to object