changed tuple3 to a proper class

..