using cookies to submit classes