The farther building is the mosque. Taj Mahal is located in between of the mosque and the guest house (previous picture in the photostream)