Removed the using-directive from main() in the composition example
Overloaded the assignment operator to handle dynamic variables correctly