moved app from lib to sample.