create interface Algorithm and map Package