finished coding for envy