get classes by userid and create class pages