Finished the "open" method