Generic class utils