working version with first commands