implementing basic directions