added class5 code