Testing some sample code with activity recognition