early version of final sketch with servo