implemented interaction terms, updated patent example