modularization
Pedometer class as singleton