solutions to quick programming problems