Added check on the type of recommendation #40

Fix #40