pedometer example