Updated sample to use refactored library

Added maven nature