finished implemantation for sketch 4.html