added vector code
done
prettified