Created getBands method