Separated commonly used methods to one class.

Added Common class