Added basic function to calculate cans and alert function for additional testing.