first activity now performs calculations