Wrote and tested the bucket class methods