almost finished encyclopedia functionality