Solution to various problems