my attempt to solve programming problems