solutions to selected assignments in Chris Pine's "Learn to Program"