added session class and comment controller