added code
added methods

checkInGroup function is not working.