Solutions to some homework problems: