complete functionality for sub1

Please check it….. let me know