MB Algorithm labs