create post class