Code refactoring as per comments.
Added style list for general css class.