YMCA offers free water safety class