added plotting sine graph