add class demo
add pattern for api

based in vk api