problem set 5, bmp