tried to create post class