Updated Code

The current code with interaction in place