creating availability class