The board may, when necessary, rent a room and employ a teacher, where there are ten children for whose accommodation there is no schoolhouse.