added java 1.8 reuse function and created mapper package to reuse mapper in and mapper our mapping functions