Extract a common class for all excercises