Modify Less1: made fields of class local variables.
Modify Less3: removed unnecessary try/catch block. Gave understandable variable names.