sources codes for CS543