added solutions and tests for problems about standard types