updated post class