div function added (completed, tested)