Solutions to some assignments