Group logic

Submitted by HTC-BootCoder 
TECHNOLGY