adds find method to post class