CardView, RecyclerView, Palette test. Refactoring