A solution that finally works...very basic skeleton