initial code for weight recording totals and year filter