Added limit to list. Implemented the tests