organized code
using initializer list in bbox class