Added spec for the bar class