allow for creation of categories in karel

stick category block in common so that it gets used in karel as well.