implemented a much needed adjacentPost function to the BackEnd class