solves cst-346