added metrics dependency
added code for metrics