Title: Filter calculations using the template method