End of class version