Updated post class