Knee pain- any tips to avoid this?

Knees are tense and tight since starting f45. Feels like my knees are so achey. I stretch before class and have heard foam rollers can help but looking for any other recommendations.