commit func added; commit is its own class.