Add filter and where method in Layer class