basic recommendation function

without testing!!!! hope it works...