finished adding interface for miguels code