implemented and tested Sedra class