added core data functionality and created static spinner