getavailablerooms() to be completed