Second task complite. Added new class of adapter.