implementing basic spring