[MOD] homework12
 added verbose mode