Function calling in assignments