Using a functor to fill the vector of pointers to samples.
Moved classes common to other projects to separete project.