using cookies for saving classes