implemented led class