Solutions for programming problems