Added solution for Exercise3