started writing the class for sessions