Jerry lived in a cabin which belonged to the orphanage authority. Which one of the following is the correct simple form ?

Answer: 
Jerry lived in a cabin belonging to the orphanage authority.
Jerry lived in a cabin which belonged to the orphanage authority. Which one of the following is the correct simple form ?