Added some old codes from programming problems