Skeleton code for evaluate's helper functions