adding getById funtionality
adding getById funtionality