created post class