adding simple stats functionality