added rahul and abbys code for understanding