Ajax practice for class