split project into a library and a sample app