changed to library project and removed unnecessary resource, using builder pattern