added summary method, which returns some statistics