implemented div, passes tests