Added activity recognition sample code.