modifications
added sessions
 adding connection method
code refacotring
methods