pinging class