implement OOJS for bear and new map