implemented buy() method. rough but functional.