Implement execution of complete sinewave program