added old code of classes (do not compile now)