Code Review 

(modified variable names, modified the magic numbers, deleted unused codes and comments, deleted unused classes)