using class and repeated messages

Signed-off-by: krishnatejaperannagari <krishnatejaperannagari@gmail.com>