adding assignment 10 scripts
added an error case