errors 5,6, 7, 9, get rid of redundant code, get rid of redundant functions,
do not use print to throw exceptions, delete form not using correctly parameters (it does not exist anymore).