Solving some problems