exercise solution for having multiple environments