add idea files to gitignore
add sample code