solutions to problems from various programming websites