finished implementation of random post